home *** CD-ROM | disk | FTP | other *** search
/ PCMania 75 / PCMania CD75_1.iso / hotme5 / data1.cab / Assets_-_hmfxarrows_-_core / Assets / Hmfx / Arrows / arrows0001 / fxitems.xml < prev    next >
Extensible Markup Language  |  1998-11-03  |  3KB  |  101 lines

  1. <?xml version="1.0" standalone="yes"?>
  2.  
  3. <Items>
  4. <Template>
  5.     <Item Type="File" CLASS="Arrow Button" ID="%Filename%">
  6.       <Icon SRC="%Filename%"/>
  7.       <Description>%ASK:Description:%{Arrow ALT Text}</Description>
  8.       <Filename SRC="%Filename%"/>
  9.       <SCRIPT LANGUAGE="JScript"><![CDATA[
  10.     var src, dest, attr;
  11.     src = "%Pathname%" + "%thisItem.SQ_getChildAttribute(Filename, 0, SRC)%";
  12.  
  13.     function buildpath()
  14.         {
  15.         if (ActiveDocument.InCurrentProject)
  16.             {
  17.             dst = Application.ProjectDirectory + "\\images\\arrows\\%Filename%";
  18.             attr = Application.PathToURL(dst, ActiveDocument.Path + "/%Filename%");
  19.             }
  20.         else
  21.             {
  22.             dst = ActiveDocument.Path + "\\images\\arrows\\%Filename%";
  23.             attr = "images/arrows/%Filename%";
  24.             }
  25.         }
  26.  
  27.     function dropfxnow()
  28.         {
  29.         Application.FX.CopyFile(src, dst);
  30.         Application.FX.SelectDropPoint();
  31.         Application.FX.HTML('<A HREF=\"{Choose URL}\"><IMG SRC=\"' + attr + '\" ALT=\"' + '%thisItem.SQ_getChildInnerHtml("Description", 0)%' + '" BORDER="0"><\/A>',null,null,null,null,true);
  32.         Application.FX.ShowDialog('ANCHOR');
  33.         }
  34.  
  35.     // First, check if the file is saved
  36.     if (ActiveDocument.Path != "")
  37.         {
  38.         buildpath();
  39.         dropfxnow();
  40.         }
  41.     else
  42.         {
  43.         ans = Application.NoticeBox("Document must first be saved.", "Save now", null,"Cancel");
  44.  
  45.         if (ans == 1)
  46.             {
  47.             ActiveDocument.SaveAs();
  48.             }
  49.         if (ActiveDocument.Path != "") //check again if they did indeed save and name file
  50.             {
  51.             buildpath();
  52.             dropfxnow();
  53.             }
  54.         }
  55.     
  56.         ]]>
  57.       </SCRIPT>
  58.     </Item>
  59. </Template>
  60.  
  61. <Item Type="File" CLASS="Arrow Button" ID="downbr2.gif">
  62.       <Icon SRC="downbr2.gif"/>
  63.       <Description>Down Arrow</Description>
  64.       <Filename SRC="downbr2.gif"/>
  65.       </Item>
  66. <Item Type="File" CLASS="Arrow Button" ID="leftbr2.gif">
  67.       <Icon SRC="leftbr2.gif"/>
  68.       <Description>Left Arrow</Description>
  69.       <Filename SRC="leftbr2.gif"/>
  70.       </Item>
  71. <Item Type="File" CLASS="Arrow Button" ID="rightbr2.gif">
  72.       <Icon SRC="rightbr2.gif"/>
  73.       <Description>Right Arrow</Description>
  74.       <Filename SRC="rightbr2.gif"/>
  75.       </Item>
  76. <Item Type="File" CLASS="Arrow Button" ID="upbr2.gif">
  77.       <Icon SRC="upbr2.gif"/>
  78.       <Description>Up Arrow</Description>
  79.       <Filename SRC="upbr2.gif"/>
  80.       </Item>
  81. <Item Type="File" CLASS="Arrow Button" ID="downbr2.jpg">
  82.       <Icon SRC="downbr2.jpg"/>
  83.       <Description>Down Arrow</Description>
  84.       <Filename SRC="downbr2.jpg"/>
  85.       </Item>
  86. <Item Type="File" CLASS="Arrow Button" ID="leftbr2.jpg">
  87.       <Icon SRC="leftbr2.jpg"/>
  88.       <Description>Left Arrow</Description>
  89.       <Filename SRC="leftbr2.jpg"/>
  90.       </Item>
  91. <Item Type="File" CLASS="Arrow Button" ID="rightbr2.jpg">
  92.       <Icon SRC="rightbr2.jpg"/>
  93.       <Description>Right Arrow</Description>
  94.       <Filename SRC="rightbr2.jpg"/>
  95.       </Item>
  96. <Item Type="File" CLASS="Arrow Button" ID="upbr2.jpg">
  97.       <Icon SRC="upbr2.jpg"/>
  98.       <Description>Up Arrow</Description>
  99.       <Filename SRC="upbr2.jpg"/>
  100.       </Item>
  101. </Items>